import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm'
interface userInfo {
    username: string,
    password: string
}

@Entity()
export class User{

    @PrimaryGeneratedColumn()
    public id: number;

    @Column({
        length: 20
    })
    public username: string;

    @Column({
        length: 20
    })
    public password: string;
}